package com.itheima.day09.Stutest;

import java.util.HashMap;
import java.util.Map;

public class test {
    public static void main(String[] args) {
        Stu s1 = new Stu("张三", 18);
        Stu s2 = new Stu("小李", 18);
        Map<Stu, String> map = new HashMap<>();
        map.put(s1, "语文老师");
        map.put(s2, "数学老师");
        map.put(new Stu("张三", 18), "语文老师");
        System.out.println(map);

    }
}
